#include "my_stdio.h"
#include<stdio.h>
#include<string.h>
int main()
{
    mFILE* fd=myfopen("./log.txt","a");
    if(fd==NULL)
    return 10;
    int count=10;
    while(count)
    {
        char buffer[64];
        snprintf(buffer,sizeof(buffer),"hello messgae,number is :%d",count);
        count--;
        

myfwrite(buffer,strlen(buffer),fd);
myfflush(fd);


    }
    myclose(fd);
    return 0;

}